//
//  VideoPlayer.h
//  Comic
//
//  Created by Ryan on 16/3/12.
//  Copyright © 2016年 程锦. All rights reserved.
//

#import <UIKit/UIKit.h>

#import <AVFoundation/AVFoundation.h>

#import "VideoPlayerMask.h"

@interface VideoPlayer : UIView


@property(nonatomic,strong)AVPlayer *player;

@property(nonatomic,strong)AVPlayerItem *playerItem;

@property(nonatomic,strong)AVPlayerLayer *playerLayer;

@property(nonatomic,strong)UIImageView *player_imageView;

@property(nonatomic,strong)UIActivityIndicatorView *activity;


//@property(nonatomic,strong)VideoPlayerMask *maskView;

@property(nonatomic,strong)UIImageView *rePlay;

@property(nonatomic,strong)UIView *backView;
@property(nonatomic,strong)UIView *maskView;


/* 播放按钮 */
@property(nonatomic,strong)UIButton *startButton;

/* 当前播放时长label */

@property(nonatomic,strong)UILabel *currentTimeLabel;

/* 视频总时长 */

@property(nonatomic,strong)UILabel *totalTimeLabel;

/* 缓冲进度条 */

@property(nonatomic,strong)UIProgressView *progressView;

/* 滑杆 */

@property(nonatomic,strong)UISlider *videoSlider;

@property(nonatomic,assign)CGFloat duation;

+ (instancetype)shareInstance;
- (void)playWithURL:(NSString *)url insert:(UIImageView *)imageView;



@end
